package com.probox.platform.api;

import com.probox.common.core.constant.ServiceNameConstants;
import com.probox.common.core.domain.R;
import com.probox.platform.api.domain.*;
import com.probox.platform.api.factory.RemotePlatformFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 平台服务
 */
@FeignClient(contextId = "remotePlatformSmsService", value = ServiceNameConstants.PLATFORM_MODULES_API, fallbackFactory = RemotePlatformFallbackFactory.class)
public interface RemotePlatformService {

    /**
     * 获取平台信息 保留
     *
     * @param platformUid
     * @return
     */
    @GetMapping("/remoteinfo/platform/{platformUid}")
    public R<PlatformInfoVo> getPlatform(@PathVariable("platformUid") Long platformUid);


}
